/*!1468W  GLOBAL STRUCTURES AND VARIABLES

STRUCTURES:

typedef struct /* defines each field in a form */
 {
  char          *name;           /* field name */
  unsigned char type;            /* field type */
  int           line;            /* field line */
  int           column;          /* field column */
  int           size;            /* field size */
  unsigned char bkgnd_color;     /* field bkgnd color */
  unsigned char fgnd_color;      /* field fgnd color */
  int           up;              /* cursor move UP */
  int           down;            /* cursor move DOWN */
  int           left;            /* cursor move BACK */
  int           right;           /* cursor move FORWARD */
  struct
   {
    unsigned int must_enter    : 1; /* must enter data */
    unsigned int must_fill     : 1; /* must fill field */
    unsigned int protect       : 1; /* enter if spaces */
    unsigned int zero_fill     : 1; /* replace spaces */
    unsigned int float_line    : 1; /* use AL, not line */
    unsigned int pre_edit      : 1; /* set PRE_EDIT on */
    unsigned int auto_help     : 1; /* set AUTO_HELP on */
    unsigned int ignore        : 1; /* ignore field */
    unsigned int flag1         : 1; /* user flag 1 */
    unsigned int flag2         : 1; /* user flag 1 */
    unsigned int flag3         : 1; /* user flag 1 */
    unsigned int flag4         : 1; /* user flag 1 */
    unsigned int flag5         : 1; /* user flag 1 */
    unsigned int flag6         : 1; /* user flag 1 */
    unsigned int flag7         : 1; /* user flag 1 */
    unsigned int flag8         : 1; /* user flag 1 */
   } edit;
  int           (*edit_function)();  /* user field edit */
  char          *help;               /* help message */
 }               form_entry;

struct function_event
{
 int           (*function)();

}              event_F[10];

 form_entry Default Values :

  CUP                -1
  CDOWN               1
  CLEFT              -1
  CRIGHT              1

  AUTO_HELP_OFF       0
  MUST_ENTER_OFF      0
  MUST_FILL_OFF       0
  PROTECT_OFF         0
  ZERO_FILL_OFF       0
  ZERO_SUPPRESS_OFF   0
  PRE_EDIT_OFF        0
  IGNORE_OFF          0

  AUTO_HELP_ON        1
  MUST_ENTER_ON       1
  MUST_FILL_ON        1
  PROTECT_ON          1
  ZERO_FILL_ON        1
  ZERO_SUPPRESS_ON    1
  PRE_EDIT_ON         1
  IGNORE_ON           1
  IGNORE_ON           1

  EDIT_FUNCTION_NONE  NULL

VARIABLES:

       unsigned char *APTR;
       unsigned char *BPTR;
       int            AL;
       int            AC;
       int            BL;
       int            BC;
       int            SIZE;

       int            RESULT;
       int            FUNC;
       char           ARROW;
       int            ESCAPE_KEY;

       int            FAST_DISPLAY;
       int            PRE_EDIT;
       int            AUTO_HELP;
       int            EXIT_FORM_NOW;
       int            MAX_FIELDS;
       char           *START_FIELD;
       char           *DEFAULT_FORM_PTR;
       form_entry     *LAST_FIELD;

       int            AUTO_COMMAND;
       int            WRAP_COMMAND;
       int            BEGIN_SELECT;

       int            VERTICAL_ONLY;

       char           DEFAULT_DAY[2];
       char           DEFAULT_MONTH[3];
       char           DEFAULT_YEAR[2];

       int            UPPERCASE;

       int            DISABLE_INSERT;
       int            DISABLE_WRAP;
       int            DISABLE_PAGE;
       int            DISABLE_DELETE;

       int            BKGND_COLOR;
       int            FGND_COLOR;
       int            BKGND_WINDOW;
       int            FGND_WINDOW;
       int            BKGND_FRAME;
       int            FGND_FRAME;
       int            BKGND_SHADOW;
       int            FGND_SHADOW;
       int            BKGND_BAR;
       int            FGND_BAR;
       int            BKGND_COMMAND;
       int            FGND_COMMAND;
       int            BKGND_TIME;
       int            FGND_TIME;
       int            BKGND_DATE;
       int            FGND_DATE;
       int            BKGND_FORM;
       int            FGND_FORM;
       int            BKGND_ENTRY;
       int            FGND_ENTRY;
       int            BKGND_HELP;
       int            FGND_HELP;
       int            BKGND_CURSOR;
       int            FGND_CURSOR;
       int            BKGND_GRAPHIC;

       int            FRAME_TYPE;
       int            SHADOW_TYPE;
       int            DRAW_LINE_TYPE;

       int            STATUS_LINE;

       int            IGNORE_BLACK;

       int            TOKEN_WIDTH;
       int            TOKEN_HEIGHT;
       int            TOKEN_ROW;
       int            TOKEN_COLUMN;

       int            MOUSE_PRESENT;
       int            MOUSE_BUTTONS;
       int            MOUSE_ROW;
       int            MOUSE_COLUMN;
       int            MOUSE_RATE;
       int            MAXPIXROWS;
       int            MAXPIXCOLS;
       int            MOUSE_RATE;
       int            HORIZ_DELAY;

       int            WINDOW_OFFSET;
       int            WINDOW_OFFSET_COLUMN;
       unsigned int   BROWSE_OFFSET;

       char           LAST_LINE_ARRAY[80]
       int            LAST_LINE;
       int            LAST_COLUMN;
       int            LAST_SIZE;
       int            LAST_ITEM;
       unsigned int   LAST_OFFSET;
       unsigned char *LAST_PTR;
       unsigned char *LAST_LINE_PTR;
       unsigned char  LAST_CHAR;

      dbf_fld        *RPTR[12];
      char           *RECORD[12];

ENVIRONMENT VARIABLES:

  CEASY         Path to C Easy System Directory
  MYCEASY       Path to YOUR own C Easy Directory

  CEZMOUSE      "set CEMOUSE=N"     inhibit mouse
  CEZSOUND      "set CEZSOUND=N"    inhibit sound
  CEZPALETTE    "set CEZPALETTE=N"  inhibit changing palette
  CEZTIME       "set CEZTIME=N"     inhibit time display

  CEZGRAPHICS   "set CEZGRAPHICS=Y" force graphics mode for mfm,
                                    vfm and tfm from command line
